package com.situ.mall.common.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

	public static Long getCurrentTime() {
		Date date = new Date();
		System.out.println(date);
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmssSSS");
		String now = simpleDateFormat.format(date);
		System.out.println(now);
		return Long.valueOf(now);
	}

	public static void main(String[] args) {
		Date date = new Date();
		System.out.println(date);
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmssSSS");
		String now = simpleDateFormat.format(date);
		System.out.println(now);
	}
}
